package com.tuanzi.loan.web.bean.credithousekeeper;

import com.tuanzi.loan.business.service.credithousekeeper.CreditCompensatoryWithdrawOrderService;
import com.tuanzi.loan.vo.request.credithousekeeper.CreditCompensatoryWithdrawStatRequest;
import com.tuanzi.loan.vo.response.credithousekeeper.CreditCompensatoryWithdrawStatResponse;
import com.tuanzi.loan.web.configuration.JSFListingBean;
import com.tuanzi.loan.web.lazy.credithousekeeper.CreditCompensatoryWithdrawStatLazyDataModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.faces.bean.ViewScoped;

/**
 * 合利宝代偿-取现  统计
 */
@Data
@Component
@ViewScoped
@EqualsAndHashCode(callSuper = true)
public class CreditCompensatoryWithdrawStatListBean extends JSFListingBean<CreditCompensatoryWithdrawStatRequest, CreditCompensatoryWithdrawStatResponse> {

    private static final long serialVersionUID = 520358946858552202L;

    @Autowired
    private CreditCompensatoryWithdrawOrderService creditCompensatoryWithdrawOrderService;

    @PostConstruct
    public void init() {
        initLazyDataModel();
    }

    private void initLazyDataModel() {
        $ = new CreditCompensatoryWithdrawStatRequest();
        lazyDataModel = new CreditCompensatoryWithdrawStatLazyDataModel($);
    }

}
